package org.grpc;

import io.micrometer.core.instrument.MeterRegistry;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * description:
 *
 * @author shun.chen
 * @date 2022/5/9
 */
@SpringBootApplication
public class GrpcClientApplication {

    public static void main(String[] args) {
        // 注:这里传入的字段码对象，必需是声明了@SpringBootApplication的类
        //启动SpringBoot程序
        SpringApplication.run(GrpcClientApplication.class);
    }

//    @Bean
//    MeterRegistryCustomizer<MeterRegistry> configurer(@Value("${spring.application.name}") String applicationName) {
//
//        return (registry) -> registry.config().commonTags("application", applicationName);
//    }

}
